Pod::Spec.new do |s|
  s.name         = "SEGStandard"
  s.version      = "1.2.0"
  s.summary      = "基础业务组件."
  s.homepage     = "http://192.168.1.11:9000/svn/segi_c/ios/SEGStandard"
  s.license      = "MIT"
  s.author             = { "山刘" => "liushan@segimail.com" }
  # s.source       = { :svn => "http://liushan@192.168.1.11:9000/svn/segi_c/ios/SEGStandard", :tag => "#{s.version}" }
  # s.source       = { :path => "/Users/shanliu/Desktop/UhomeModules/SEGStandard-trunk/SEGStandard.podspec" }
  s.source       = { :git => "http://gitlab.uhomecp.com:9200/jingjie/segstandard.git", :tag => "#{s.version}"}
  s.static_framework    = true
  s.requires_arc        = true
  s.platform            = :ios, "9.0"  
  s.dependency "SEGPlatform"  
  s.dependency "SEGViewModel/SEGStandard"
  s.resource_bundles = {
    'SEGStandard' => ['SEGStandard/Resources/*.*']
  }

  # 新版本组件
  s.subspec 'SEGNewVersion' do|newv|
    newv.source_files  = "SEGStandard/Class/SEGNewVersion/**/*"
    newv.public_header_files = "SEGStandard/Class/SEGNewVersion/**/*.h"
    newv.prefix_header_file = "SEGStandard/Class/SEGNewVersion/SEGNewVersionPrefixHeader.pch"
    
    newv.dependency "Commom/SEGColor"
    newv.dependency "Commom/SEGTools/YYBase"
    newv.dependency "Commom/SEGTools/SEGModel"
    newv.dependency "Commom/ThirdNibs/SEGonry"
    newv.dependency "Commom/SEGServerManager"
    newv.dependency "Commom/SEGLayoutMacro"
    # newv.dependency "SEGPlatform/SEGPlatform"
  end 

  # 用户反馈
  s.subspec 'SEGUserFeedback' do|ufb|
    ufb.source_files  = "SEGStandard/Class/SEGUserFeedback/**/*"
    ufb.public_header_files = "SEGStandard/Class/SEGUserFeedback/**/*.h"
    ufb.prefix_header_file = "SEGStandard/Class/SEGUserFeedback/SEGUserFeedbackPrefixHeader.pch"

    ufb.dependency "SVProgressHUD"
    ufb.dependency "Commom/SEGLayoutMacro"
    ufb.dependency "Commom/SEGColor"
    # ufb.dependency "SEGPlatform/SEGPlatform"
    # ufb.dependency "SEGPlatform/SEGInterfaceManager"
    # ufb.dependency "SEGPlatform/CommonViews"
    # ufb.dependency "SEGPlatform/SEGBussinessConst"
  end      

  # 设置
  s.subspec 'SEGSetting' do|stg|
    stg.source_files  = "SEGStandard/Class/SEGSetting/**/*"
    stg.public_header_files = "SEGStandard/Class/SEGSetting/**/*.h"
    stg.prefix_header_file = "SEGStandard/Class/SEGSetting/SEGSettingPrefixHeader.pch"

    stg.dependency "Commom/SEGColor"
    stg.dependency "Commom/SEGTools/YYBase"
    stg.dependency "Commom/ThirdNibs/SEGonry"
    stg.dependency "Commom/SEGServerManager"
    # stg.dependency "SEGPlatform/SEGBussinessConst"
    # stg.dependency "SEGPlatform/CommonViews"
    # stg.dependency "SEGPlatform/SEGPlatform"
    stg.dependency 'UMCCommon', '~> 7.2.5'  # 有盟统计
    stg.dependency 'UMDevice', '~> 1.1.0'  # 有盟统计
    
  end    

  # 分享
  s.subspec 'SEGShare' do|share|
    share.source_files  = "SEGStandard/Class/SEGShare/**/*"
    share.public_header_files = "SEGStandard/Class/SEGShare/**/*.h"
    share.prefix_header_file = "SEGStandard/Class/SEGShare/SEGSharePrefixHeader.pch"
    
    share.dependency "commonThirds/TencentOpenAPI"
    share.dependency "WechatOpenSDK"

    share.dependency "Commom/SEGColor"
    share.dependency "Commom/SEGTools/YYBase"
    share.dependency "Commom/ThirdNibs/SEGonry"
    share.dependency "Commom/SEGLayoutMacro"
    share.dependency "Commom/ThirdNibs/SEGText"
  end

  # 个人资料
  s.subspec 'SEGPersonalInfo' do|psi|
    psi.source_files  = "SEGStandard/Class/SEGPersonalInfo/**/*"
    psi.public_header_files = "SEGStandard/Class/SEGPersonalInfo/**/*.h"
    psi.prefix_header_file = "SEGStandard/Class/SEGPersonalInfo/SEGPersonalInfoPrefixHeader.pch"

    psi.dependency "SVProgressHUD"
    
    psi.dependency "Commom/SEGColor"
    psi.dependency "Commom/SEGTools/YYBase"
    psi.dependency "Commom/SEGLayoutMacro"

    psi.dependency "commonThirds/SEGImagePickerManager"
    psi.dependency "Commom/ThirdNibs/SEGText"
    psi.dependency "Commom/ThirdNibs/YYImage"
    psi.dependency "Commom/ThirdNibs/SDWebImage"
    psi.dependency "Commom/ThirdNibs/SEGonry"
    psi.dependency "Commom/SEGTools/SEGModel"
  end

  # 广告
  s.subspec 'SEGAdvertisement' do|adv|
    adv.source_files  = "SEGStandard/Class/SEGAdvertisement/**/*"
    adv.public_header_files = "SEGStandard/Class/SEGAdvertisement/**/*.h"
    adv.prefix_header_file = "SEGStandard/Class/SEGAdvertisement/SEGAdvertisementPrefixHeader.pch"

    adv.dependency "Commom/SEGColor"
    adv.dependency "Commom/SEGTools/YYBase"
    adv.dependency "Commom/ThirdNibs/SEGonry"
    adv.dependency "Commom/ThirdNibs/SDWebImage"
    # adv.dependency "SEGPlatform/SEGInterfaceManager"
    # adv.dependency "SEGPlatform/SEGPlatform"
    # adv.dependency "SEGPlatform/SEGBussinessConst"
    # adv.dependency "SEGPlatform/CommonViews"

    adv.dependency "SEGMenus"
  end  

  # 底部TabBar
  s.subspec 'SEGTabBars' do|tabb|
    tabb.source_files  = "SEGStandard/Class/SEGTabBars/**/*"
    tabb.public_header_files = "SEGStandard/Class/SEGTabBars/**/*.h"
    tabb.prefix_header_file = "SEGStandard/Class/SEGTabBars/SEGTabBarsPrefixHeader.pch"

    tabb.dependency "Commom/SEGColor"
    tabb.dependency "Commom/SEGLayoutMacro"
    tabb.dependency "Commom/ThirdNibs/SEGText"
    tabb.dependency "Commom/ThirdNibs/SEGonry"
    tabb.dependency "Commom/SEGTools/YYBase"
    tabb.dependency "Commom/ThirdNibs/SDWebImage"
  end  

  # 收藏
  s.subspec 'SEGCollection' do|colle|
    colle.source_files  = "SEGStandard/Class/SEGCollection/**/*"
    colle.public_header_files = "SEGStandard/Class/SEGCollection/**/*.h"
    colle.prefix_header_file = "SEGStandard/Class/SEGCollection/SEGCollectionPrefixHeader.pch"

    colle.dependency "Commom/SEGColor"
    colle.dependency "Commom/SEGTools/YYBase"
    colle.dependency "Commom/ThirdNibs/SEGonry"
    colle.dependency "Commom/ThirdNibs/SDWebImage"
    colle.dependency "Commom/SEGServerManager"
    colle.dependency "Commom/SEGLayoutMacro"
    colle.dependency "commonThirds/SEGWindmill"

  end  


  # 登陆
  s.subspec 'SEGLogin' do|login|
    login.source_files  = "SEGStandard/Class/SEGLogin/**/*"
    login.public_header_files = "SEGStandard/Class/SEGLogin/**/*.h"
    login.prefix_header_file = "SEGStandard/Class/SEGLogin/SEGLoginPrefixHeader.pch"
    
    login.dependency "SVProgressHUD"

    login.dependency 'BMKLocationKit'
    login.dependency 'BaiduMapKit'
    login.dependency 'UMCCommon', '~> 7.2.5'  # 有盟统计
    login.dependency 'UMDevice', '~> 1.1.0'  # 有盟统计

    login.dependency "Commom/SEGColor"
    login.dependency "Commom/ThirdNibs/SEGonry"
    login.dependency "Commom/SEGServerManager"
    login.dependency "Commom/SEGTools/YYBase"
    login.dependency "Commom/SEGTools/SEGModel"
    login.dependency "Commom/SEGTools/SEGCKeyChainStore"
  end

  # 消息
  s.subspec 'SEGMessage' do|msg|
    msg.source_files  = "SEGStandard/Class/SEGMessage/**/*.{h,m}"
    msg.public_header_files = "SEGStandard/Class/SEGMessage/**/*.h"
    msg.prefix_header_file = "SEGStandard/Class/SEGMessage/SEGMessagePrefixHeader.pch"

    msg.dependency 'SVProgressHUD'
    msg.dependency 'JPush' , '3.4.0'
    msg.dependency 'GDTMobSDK'

    msg.dependency "commonThirds/SEGWindmill"
    msg.dependency "commonThirds/SEGImagePickerManager"

    # msg.dependency "SEGStandard/SEGMenuList"
    msg.dependency "SEGMenus"
    
    msg.dependency "Commom/ThirdNibs/FMDB"
    msg.dependency "Commom/SEGColor"
    msg.dependency "Commom/ThirdNibs/SEGonry"
    msg.dependency "Commom/SEGServerManager"
    msg.dependency "Commom/SEGTools/YYBase"
    msg.dependency "Commom/SEGTools/SEGModel"
    msg.dependency "Commom/ThirdNibs/SEGText"
    msg.dependency "Commom/ThirdNibs/SDWebImage"

    # msg.dependency "SEGPlatform/SEGPlatform"
    # msg.dependency "SEGPlatform/CommonViews"
    # msg.dependency "SEGPlatform/SEGBussinessConst"
    # msg.dependency "SEGPlatform/SEGInterfaceManager"
  end 

  
  s.subspec 'SEGDigitalCommunity' do |ss|
    ss.public_header_files = 'SEGStandard/Class/SEGDigitalCommunity/*.h', 'SEGStandard/Class/SEGDigitalCommunity/**/*.h'
    ss.source_files = 'SEGStandard/Class/SEGDigitalCommunity/*', 'SEGStandard/Class/SEGDigitalCommunity/**/*'
    ss.prefix_header_file = "SEGStandard/Class/SEGDigitalCommunity/SEGDigitalCommunityPrefixHeader.pch"
    ss.dependency "SVProgressHUD"
    ss.dependency "Commom"
  end

  # 活动抽奖
  s.subspec 'SEGLottery' do|lot|
    lot.source_files  = "SEGStandard/Class/SEGLottery/**/*"
    lot.public_header_files = "SEGStandard/Class/SEGLottery/**/*.h"
    lot.prefix_header_file = "SEGStandard/Class/SEGLottery/SEGLotteryPrefixHeader.pch"

    lot.dependency "Commom/SEGColor"
    lot.dependency "Commom/SEGServerManager"
    lot.dependency "Commom/ThirdNibs/SEGonry"
    lot.dependency "Commom/SEGTools/YYBase"
    lot.dependency "Commom/ThirdNibs/SDWebImage"
    # lot.dependency "SEGPlatform/SEGBussinessConst"
    # lot.dependency "SEGPlatform/SEGInterfaceManager"
  end


  # web
  s.subspec 'SEGWeb' do|web|
    web.source_files  = "SEGStandard/Class/SEGWeb/**/*"
    web.public_header_files = "SEGStandard/Class/SEGWeb/Model/**/*.h"
    web.private_header_files  = "SEGStandard/Class/SEGWeb/Manager/**/*.h","SEGStandard/Class/SEGWeb/View/**/*.h","SEGStandard/Class/SEGWeb/Controller/**/*.h","SEGStandard/Class/SEGWeb/Actions/**/*.h"
    # web.resource = "Commom/Resources/Commom.bundle"

    web.dependency "Commom/SEGColor"
    web.dependency "Commom/SEGLayoutMacro"
    web.dependency "Commom/SEGTools/YYBase"
    web.dependency "Commom/SEGTools/SEGCKeyChainStore"
    web.dependency "Commom/ThirdNibs/libextobjc"
    web.dependency "Commom/ThirdNibs/SEGonry"
    web.dependency "CommonMediator"
    web.dependency "SEGWebView"

    # web.dependency "SEGPlatform/SEGPlatform"
    # web.dependency "SEGPlatform/SEGInterfaceManager"
    # web.dependency "SEGPlatform/SEGBussinessConst"
    # web.dependency "SEGPlatform/CommonViews"
  end 

  s.subspec 'SEGFaceRecognition' do |face|
    face.source_files  = "SEGStandard/Class/SEGFaceRecognition/**/*"
    face.public_header_files = "SEGStandard/Class/SEGFaceRecognition/**/*.h"
    face.dependency "Commom/SEGColor"
    face.dependency "Commom/SEGTools/YYBase"
    face.dependency "Commom/ThirdNibs/SEGonry"
    face.dependency "Commom/SEGServerManager"
    face.dependency "commonThirds/SEGImagePickerManager"
    face.dependency "Commom/ThirdNibs/SDWebImage"
    
  end

  s.dependency "CommonMediator"
end

# pod spec lint --sources='https://github.com/CocoaPods/Specs.git,http://gitlab.uhomecp.com:9200/jingjie/segpodrepo.git' --no-clean --verbose --skip-import-validation --fail-fast --use-libraries  --use-libraries --allow-warnings --subspec=SEGStandard/SEGInvite
# pod repo push segrepo  SEGStandard.podspec --allow-warnings --use-libraries --sources='https://github.com/CocoaPods/Specs.git,http://gitlab.uhomecp.com:9200/jingjie/segpodrepo.git' --skip-tests --verbose  
















